﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooGameplayLibertyPlayerControllerPlayerStaminaBarWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar);
			Utils.BeginObjectRegister(type, L, translator, 0, 3, 10, 9);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFollowTransform", _m_SetFollowTransform);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBarValue", _m_SetBarValue);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "SwitchState", _m_SwitchState);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "UICamera", _g_get_UICamera);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "followTarget", _g_get_followTarget);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "followOffset", _g_get_followOffset);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "green", _g_get_green);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "yellow", _g_get_yellow);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "red", _g_get_red);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "bgBlack", _g_get_bgBlack);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "bgRed", _g_get_bgRed);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "bar", _g_get_bar);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "lerpSpeed", _g_get_lerpSpeed);
            
			Utils.RegisterFunc(L, Utils.SETTER_IDX, "followTarget", _s_set_followTarget);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "followOffset", _s_set_followOffset);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "green", _s_set_green);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "yellow", _s_set_yellow);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "red", _s_set_red);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "bgBlack", _s_set_bgBlack);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "bgRed", _s_set_bgRed);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "bar", _s_set_bar);
            Utils.RegisterFunc(L, Utils.SETTER_IDX, "lerpSpeed", _s_set_lerpSpeed);
            
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
			
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetFollowTransform(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Transform _follow = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
                    
                    gen_to_be_invoked.SetFollowTransform( _follow );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SetBarValue(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float _v = (float)LuaAPI.lua_tonumber(L, 2);
                    
                    gen_to_be_invoked.SetBarValue( _v );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_SwitchState(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _t = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.SwitchState( _t );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_UICamera(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.UICamera);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_followTarget(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.followTarget);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_followOffset(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineVector3(L, gen_to_be_invoked.followOffset);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_green(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineColor(L, gen_to_be_invoked.green);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_yellow(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineColor(L, gen_to_be_invoked.yellow);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_red(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                translator.PushUnityEngineColor(L, gen_to_be_invoked.red);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_bgBlack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.bgBlack);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_bgRed(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.bgRed);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_bar(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.bar);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_lerpSpeed(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushnumber(L, gen_to_be_invoked.lerpSpeed);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_followTarget(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.followTarget = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_followOffset(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.followOffset = gen_value;
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_green(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.green = gen_value;
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_yellow(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.yellow = gen_value;
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_red(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                UnityEngine.Color gen_value;translator.Get(L, 2, out gen_value);
				gen_to_be_invoked.red = gen_value;
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_bgBlack(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.bgBlack = (Yoozoo.UI.YGUI.YImage)translator.GetObject(L, 2, typeof(Yoozoo.UI.YGUI.YImage));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_bgRed(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.bgRed = (Yoozoo.UI.YGUI.YImage)translator.GetObject(L, 2, typeof(Yoozoo.UI.YGUI.YImage));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_bar(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.bar = (Yoozoo.UI.YGUI.YImage)translator.GetObject(L, 2, typeof(Yoozoo.UI.YGUI.YImage));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_lerpSpeed(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar gen_to_be_invoked = (Yoozoo.Gameplay.Liberty.PlayerController.PlayerStaminaBar)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.lerpSpeed = (float)LuaAPI.lua_tonumber(L, 2);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
